### Function Description

Distribute configuration files, this interface is used to distribute small plain text files such as configuration files

### Request Parameters

#### Interface parameters

| Fields           | Type   | Required | Description                                                                                                 |
|------------------|--------|----------|-------------------------------------------------------------------------------------------------------------|
| bk_scope_type    | string | yes      | Resource scope type. Optional values: biz - Business，biz_set - Business Set                                 |
| bk_scope_id      | string | yes      | Resource scope ID. Corresponds to bk_scope_type, which means business ID or business set ID                 |
| bk_biz_id        | long   | yes      | Deprecated. Business ID. This field has been deprecated and replaced by the field bk_scope_type+bk_scope_id |
| task_name        | string | no       | Custom job name, length cannot exceed 512 characters                                                        |
| account_alias    | string | yes      | Execute account alias                                                                                       |
| file_target_path | string | yes      | File transfer destination path                                                                              |
| file_list        | array  | yes      | Source file object array, see file definition below                                                         |
| target_server    | object | yes      | Target server, see server definition                                                                        |

##### file

| Fields    | Type   | Required | Description         |
|-----------|--------|----------|---------------------|
| file_name | string | yes      | File name           |
| content   | string | yes      | File content Base64 |

{% include '_generic_server.md.j2' %}

### Example of request

- POST

```json
{
    "bk_scope_type": "biz",
    "bk_scope_id": "1",
    "account_alias": "root",
    "file_target_path": "/tmp/",
    "file_list": [
        {
            "file_name": "a.txt",
            "content": "aGVsbG8gd29ybGQh"
        }
    ],
    "target_server": {
        "dynamic_group_list": [
            {
                "id": "blo8gojho0skft7pr5q0"
            }
        ],
        "host_id_list": [
            101,
            102
        ],
        "topo_node_list": [
            {
                "id": 1000,
                "node_type": "module"
            }
        ]
    }
}
```

### Example of responses

```json
{
    "result": true,
    "code": 0,
    "data": {
        "job_instance_name": "API_PUSH_CONFIG_FILE_script1521100521303",
        "job_instance_id": 10000,
        "step_instance_id": 10001
    },
    "job_request_id": "xxx"
}
```

### Response Description

{% include '_generic_response.md.j2' %}

##### data

{% include '_generic_response_job_instance.md.j2' %}
